class Solution:
    def isStraight(self, nums: List[int]) -> bool:
        s = set()
        ma, mi = -1, 14
        for i in nums:
            if i==0:
                continue
            elif i in s:
                return False    # 不能有重复
            else:
                s.add(i)
                ma, mi = max(ma, i), min(mi, i)
                if ma - mi >= 5:# 极差不能大于五
                    return False
        return True